package com.sunyard.dal.mapper;

import com.sunyard.dal.dto.CarDTO;
import com.sunyard.dal.entity.Car;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: ZhangShuai
 * @description: 车辆信息接口
 * @create: 2022-07-07 14:26
 **/
public interface CarMapper {
    Car selectById(Integer id);

    void deleteByPrimaryKey(Integer id);

    void insert(Car car);

    void insertSelective(CarDTO car);

    void updateByPrimaryKeySelective(CarDTO car);

    List<Car> getCarInfoByOrgList(List<String> list);

    List<Car> getCarInfoByOrg(String orgId);

    List<Car> getPageInfo(CarDTO car);

    Car quetyCarName(@Param("carName") String carName, @Param("id") String id);

    Car queryByCarPlate(@Param("carPlate") String carPlate, @Param("id") String id);

}
